﻿namespace RayDen.Library.Entity.Scene {
    using RayDen.Library.Core.Primitives;

    public class SceneGeometryInfo {

        public Point BoundingSphereCenter;
        public float BoundingSphereRadius;

        

        public Point[] Vertices;
        public Vector[] Normals;
        public Vector[] TexCoords;


        public bool GlobalIndexing { get; set; }
        public GeometryInfo[] Geometry { get; set; }

        public CameraInfo[] Cameras { get; set; }

        public AABB BoundingBox()
        {
            var bbox = new AABB();
            foreach (var vertex in Vertices)
            {
                bbox.Union(vertex);
            }
            return bbox;
        }
    }
}
